package cn.iocoder.yudao.module.trade.framework.delivery.core.client.dto.wxexpress.wxExpressCreate;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@Data
public class CargoDTO {
    @JsonProperty("count")
    @Schema(description = "包裹数量, 默认为1", example = "1")
    private Integer count;

    @Schema(description = "货物总重量，比如1.2，单位是千克(kg)", example = "1.2")
    @NotEmpty(message = "货物总重量 不能为空")
    @JsonProperty("weight")
    private Double weight;

    @Schema(description = "货物长度，比如20.0，单位是厘米(cm)", example = "20.0")
    @NotEmpty(message = "货物长度 不能为空")
    @JsonProperty("space_x")
    private Double spaceX;

    @Schema(description = "货物宽度，比如15.0，单位是厘米(cm)", example = "15.0")
    @NotEmpty(message = "货物宽度 不能为空")
    @JsonProperty("space_y")
    private Integer spaceY;

    @Schema(description = "货物高度，比如10.0，单位是厘米(cm)", example = "10.0")
    @NotEmpty(message = "货物高度 不能为空")
    @JsonProperty("space_z")
    private Integer spaceZ;
}
